﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Login.ascx.cs" Inherits="Login" %>
<script language="javascript" type="text/javascript">

</script>
<style type="text/css">
    a:link {color:#006699; text-decoration: none; }
    a:active {color: #006699; text-decoration: none; }
    a:visited {color: #006699; text-decoration: none; }
    a:hover {color: #006699; text-decoration: none; }
    .stylebody
    {
        width:300px;
    }
    .style2
    {
        text-align: center;
       
    }
    .style3
    {
        font-weight: bold;
    }
    .style4
    {
        color: #FFCC99;
        font-style: italic;
        font-size:13px;
    }
    .style5
    {
        text-align: right;
        width:90px;
    }
    .style6
    {
        color: #000000;
    }
    .style7
    {
        font-weight: bold;
        color: #000000;
    }
</style>
<div class="stylebody">
<div id="cornersecond">
<div class="inside">
    <span style="font-size: 14px"><strong>
	        Đăng nhập </strong></span>
	        </div>
	        <div class="topleft"></div><div class="topright"></div>
</div>
<div id="cornerthird">
<div class="inside">
<asp:Panel ID="pnlChuaDangNhap" runat="server" Width="100%" Height="100px">
    <table style="width:100%">
        <tr>
            <td class="style5">
                User Name:</td>
            <td>
                <asp:TextBox ID="txtUserName" runat="server" Width="150px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style5">
                Password:</td>
            <td>
                <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" Width="150px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style5">
            </td>
            <td>
                <asp:CheckBox ID="chbxRemember" runat="server" Text="Lưu đăng nhập" /></td>
        </tr>
        <tr>
            <td class="style5">
                &nbsp;</td>
            <td>
                <asp:ImageButton ID="ibtnLogin" runat="server" onclick="btnDangNhap_Click" 
                    ImageUrl="~/Images/login.gif" Height="25px" Width="100px" CausesValidation="False" OnClientClick="ibnLogin" />
                <asp:HyperLink ID="hlinkDangKy" runat="server" NavigateUrl="~/Account.aspx" 
                    Font-Italic="False" CssClass="style3">Đăng Ký!!</asp:HyperLink></td>
        </tr>
    </table>
</asp:Panel>
<asp:Panel ID="pnDaDangNhap" runat="server" Width="100%" Height="90px">
    <table style="width:100%">
        <tr>
            <td class="style2">
                <span class="style6" style="font-size: 13px">Chào </span>
                <asp:HyperLink ID="HyperLink2" runat="server" CssClass="style3" Font-Italic="False"
                    NavigateUrl="~/Account.aspx"><% Response.Write(Session["UserName"].ToString()); %></asp:HyperLink><span><span
                    style="font-size: 13px">
                <span class="style6">&nbsp;đã quay lại!</span></span></span></td>
        </tr>
        <tr>
            <td class="style2">
                <asp:ImageButton ID="ibtnLogout" runat="server" Height="20px" ImageUrl="~/Images/logout.gif"
                    Width="90px" OnClick="ibtnLogout_Click" CausesValidation="False" />
                <asp:HyperLink ID="HyperLink1" runat="server" CssClass="style3" Font-Italic="False"
                    NavigateUrl="~/BankAccount.aspx">Thông tin tài khoản</asp:HyperLink>
             </td>
             <td><asp:HyperLink ID="HyperLink3" runat="server" CssClass="style3" Font-Italic="False"
                    NavigateUrl="~/ShoppingHistory.aspx">Shopping history</asp:HyperLink></td>
        </tr>
        <tr>
        <td>
        <hr />
        <a href="ShoppingCart.aspx"><div style="text-align:center; vertical-align:middle"><asp:Image runat="server" ID="gh" ImageUrl="~/Images/giohang.jpg"  Width="30px" Height="20px"/>Quản lý giỏ hàng</div></a>
        </td>
        
        </tr>
    </table>
    
   
   </asp:Panel>
</div>
<div class="bottomright"></div><div class="bottomleft"></div>
</div>
</div>

